package com.idis.userApp.controller;

import com.idis.service.WorkService;
import io.swagger.annotations.Api;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

import java.util.HashMap;

/**
 * Created by Ming on 2018/1/28.
 */
@Controller
@Api(tags = "跳转接口")
public class IndexController {

    @Autowired
    WorkService workService;

    @RequestMapping("/")
    public String index(){
        return "html/index";
    }

    @RequestMapping("/index")
    public String helloHtml(HashMap<String, Object> map) {
        // map.put("hello", "欢迎进入HTML页面");
        return "html/index";
    }
    @RequestMapping("/works")
    public String worksHtml(HashMap<String, Object> map) {
        // map.put("hello", "欢迎进入HTML页面");
        return "html/works";
    }
    @RequestMapping("/member")
    public String memberHtml(HashMap<String, Object> map) {
        // map.put("hello", "欢迎进入HTML页面");
        return "html/member";
    }
    @RequestMapping("/teacher")
    public String teacherHtml(HashMap<String, Object> map) {
        // map.put("hello", "欢迎进入HTML页面");
        return "html/teacher";
    }
    @RequestMapping("/abstract")
    public String abstractHtml(HashMap<String, Object> map) {
        // map.put("hello", "欢迎进入HTML页面");
        return "html/abstract";
    }
    @RequestMapping("/contact")
    public String contactHtml(HashMap<String, Object> map) {
        // map.put("hello", "欢迎进入HTML页面");
        return "html/contact";
    }
}
